package edu.nf.ch11.aop;

import edu.nf.aop.ProxyFactory;

/**
 * @author wangl
 * @date 2025/4/21
 */
public class Main {

    public static void main(String[] args) {
        //创建代理工厂并指定目标对象的class
        ProxyFactory proxyFactory = new ProxyFactory(UserService.class);
        UserService service = proxyFactory.createProxy();
        service.add();
        System.out.println("-----------------");
        service.update();
    }
}